﻿public class Student
{
    //学生属性
    public String Name { get; set; }
    public int Age { get; set; }

    public double Score { get; set; }

    //构造方法
    public Student(string name, int age, double score)
    {
        Name = name;
        Age = age;
        Score = score;
    }

    //重写Tostring()
    public override string ToString()
        => $"{Name,-10} {Age,3}岁  {Score,5:F1}分";
}